import request from '@/utils/request'

export function addOrder(data){
    return request({
        url:"api/order/addOrder",
        method:'post',
        data:data
    })
}

export function getOrderAll(id){
    return request({
        url:`api/order/allOrder/${id}`,
        method:'get',
    })
}


export function deleteOrder(id){
    return request({
        url:`api/order/id=${id}`,
        method:'delete',
    })
}


export function update(data){
    return request({
        url:`api/order/update`,
        method:'post',
        data:data
    })
}